package com.example.service.impl;

import com.example.bean.User;
import com.example.mapper.UserMapper;
import com.example.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    // 添加用户(注册)
    @Override
    public void addUser(User user) {
        userMapper.addUser(user);
    }

    @Override
    public User findDone(User user) {
        User findUser = userMapper.findDone(user);
        return findUser;
    }

}
